package xy.donate.android.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;

import cn.bmob.v3.BmobObject;
import xy.donate.android.db.AddressTypeConverter;

@Entity
public class OrderBean extends BmobObject {

    @PrimaryKey
    @NonNull
    private String OrderNo;
    private String UserID;
    private String time;
    private String bz;
    private String orderTime;
    @TypeConverters(AddressTypeConverter.class)
    private AddressEntity address;
    private int orderStatus;

    public OrderBean() {
        OrderNo = "";
        setTableName("Order");
    }

    @NonNull
    public String getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(@NonNull String orderNo) {
        OrderNo = orderNo;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getUserID() {
        return UserID;
    }

    public void setUserID(String userID) {
        UserID = userID;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public AddressEntity getAddress() {
        return address;
    }

    public void setAddress(AddressEntity address) {
        this.address = address;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }
}
